<!doctype html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>Spark simple table example</title>
		<script type="text/javascript" src="../../lib/jquery-1.4.4.js"></script>
		<script type="text/javascript" src="../../src/jquery.spark.js"></script>
		<link rel="stylesheet" href="../screen.css" type="text/css" media="screen, projection">
		<link rel="stylesheet" href="../print.css" type="text/css" media="print">
	</head>
	<body>
		<div class="container">
			<div class="span-24 last prepend-top">
				<h1>Spark simple table example</h1>
				<p>
					The following table is a spark showing the result of a
					query to DBpedia, asking for the 20 largest cities by
					population and their state.
					<div class="spark"
						data-spark-endpoint="simpletable.sparql"
						data-spark-format="http://km.aifb.kit.edu/sites/spark/src/jquery.spark.simpletable.js"
						data-spark-query="select distinct ?City ?State ?Population
							where {
								?c dbpedia-owl:federalState ?s .
								?c rdfs:label ?City .
								?s rdfs:label ?State .
								?c dbpedia-owl:populationTotal ?Population .
								filter(langMatches(lang(?City), &quot;en&quot;)) .
								filter(langMatches(lang(?State), &quot;en&quot;)) .
							}
							order by desc[?Population]
							limit 20"
					>
						<em>loading&hellip;</em>
					</div>
				</p>
				<p>
					<a href="index.html">[back to gallery]</a>
				</p>
			</div>
		</div>
	</body>
</html>